|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.minecraft.src.customstuff.scripts.Living
net.minecraft.src.customstuff.scripts.Player
public class Player
| Field Summary | |
|---|---|
net.minecraft.src.EntityPlayer |
player
|
| Constructor Summary | |
|---|---|
Player(net.minecraft.src.EntityPlayer player,
World world)
|
|
| Method Summary | |
|---|---|
void |
addHunger(int i)
Adds to the player's hunger |
void |
addSaturation(float f)
Adds saturation to the player |
void |
addToInventory(int id,
int count,
int damage)
Adds items to the players inventory, if there is space for them. |
void |
addToInventorySlot(int slotId,
int count)
Adds items to an inventory slot if it isn't empty |
void |
clearInventory()
Clears the player inventory (not the armor inventory). |
void |
clearInventorySlot(int slotId)
Clears an inventory slot |
void |
damageItem(int slotId,
int damage)
Damages an item in the given inventory slot |
void |
fillInventory(int id,
int damage)
Fills the player's inventory with the given item. |
void |
fillInventorySlot(int slotId)
Fills an inventory slot if it is empty |
int |
getCurrentSlot()
|
float |
getHunger()
|
int |
getItemCount(int id,
int damage)
|
int |
getItemDamage(int slotId)
|
int |
getItemId(int slotId)
|
int |
getItemStackSize(int slotId)
|
int |
getLookX(int distance)
|
int |
getLookY(int distance)
|
int |
getLookZ(int distance)
|
int |
getMaxItemDamage(int slotId)
|
float |
getSaturation()
|
boolean |
isFuelInSlot(int slot)
|
void |
placeBlock(int i,
int j,
int k,
int id,
int damage,
int side)
Adds a block on the given side of the block at the given coordinates |
void |
placeBlock(net.minecraft.src.customstuff.scripts.Position pos,
int id,
int damage,
int side)
Adds a block on the given side of the block at the given position |
void |
removeFromInventory(int id,
int count,
int damage)
Removes items from the players inventory |
void |
removeFromInventorySlot(int slotId,
int count)
Removes items from an inventory slot |
void |
sendMessage(java.lang.String message)
Adds a message to the player |
void |
setHunger(int i)
Sets the player's hunger |
void |
setInventorySlot(int slotId,
int id,
int count,
int damage)
Sets the content of an inventory slot |
void |
setItemInUse()
Sets the current item in use |
void |
setSaturation(float f)
Sets the player's saturation |
| Methods inherited from class net.minecraft.src.customstuff.scripts.Living |
|---|
addVelo, dropItem, getHealth, getLookingSide, getPositionX, getPositionY, getPositionZ, getType, move, move, setHealth, setOnFire, setPosition, setPosition |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public net.minecraft.src.EntityPlayer player
| Constructor Detail |
|---|
public Player(net.minecraft.src.EntityPlayer player,
World world)
| Method Detail |
|---|
public void sendMessage(java.lang.String message)
message - The message to sendpublic void clearInventory()
public void fillInventory(int id,
int damage)
id - The id of the itemdamage - The damage values of the item
public void addToInventory(int id,
int count,
int damage)
id - The item's idcount - The item's amountdamage - The item's damage value
public void removeFromInventory(int id,
int count,
int damage)
id - The item's idcount - The item's amountdamage - The item's damage valuepublic void clearInventorySlot(int slotId)
slotId - The slot's idpublic void fillInventorySlot(int slotId)
slotId - The slot's id
public void setInventorySlot(int slotId,
int id,
int count,
int damage)
slotId - The slot's idid - The item's idcount - The item's amountdamage - The item's damage value
public void removeFromInventorySlot(int slotId,
int count)
slotId - The slot's idcount - The amount to remove
public void addToInventorySlot(int slotId,
int count)
slotId - The slot's idcount - The amount to add
public void damageItem(int slotId,
int damage)
slotId - The slot's iddamage - The damage to add to the item
public void placeBlock(net.minecraft.src.customstuff.scripts.Position pos,
int id,
int damage,
int side)
pos - The position to add the block at a sideid - The id of the block to adddamage - The damage block of the block to addside - The side on the block at pos
public void placeBlock(int i,
int j,
int k,
int id,
int damage,
int side)
i - The x-coordinatej - The y-coordinatek - The z coordinateid - The block's iddamage - The block's damage valueside - The side on the block at x,y,zpublic void setSaturation(float f)
f - public void addSaturation(float f)
f - public void setHunger(int i)
i - public void addHunger(int i)
i - public void setItemInUse()
public int getCurrentSlot()
public int getItemId(int slotId)
slotId - The slot's id
public int getItemStackSize(int slotId)
slotId - The slot's id
public int getItemDamage(int slotId)
slotId - The slot's id
public int getMaxItemDamage(int slotId)
slotId - The slot's id
public int getItemCount(int id,
int damage)
id - The item's iddamage - The items' damage value
public boolean isFuelInSlot(int slot)
slot - The slot's id
public float getSaturation()
public float getHunger()
public int getLookX(int distance)
distance - The maximum distance
public int getLookY(int distance)
distance - The maximum distance
public int getLookZ(int distance)
distance - The maximum distance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||